package com.jlkf.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jlkf.dao.PlatformMapper;
import com.jlkf.service.PlatformService;

@Service
public class PlatformServiceImpl implements PlatformService {

	@Autowired
	private PlatformMapper paltformMapper;
	
	/**
	 * 查看平台费用折扣
	 */
	@Override
	public int selectPlatformDiscount() {
		return paltformMapper.selectPlatformDiscount();
	}

	/**
	 * 修改平台费用折扣
	 */
	@Override
	public int updatePlatformDiscount(Integer discount) {
		return paltformMapper.updatePlatformDiscount(discount);
	}

	/**
	 * 查看平台活动
	 */
	@Override
	public Map<String, Object> selectPlatformActivity() {
		return paltformMapper.selectPlatformActivity();
	}

	/**
	 * 修改平台活动
	 */
	@Override
	public int updatePlatformActivity(Map<String,Object> map) {
		return paltformMapper.updatePlatformActivity(map);
	}

	/**
	 * 平台活动列表
	 */
	@Override
	public List<Map<String, Object>> selectPlatformList(Map<String, Object> map) {
		return paltformMapper.selectPlatformList(map);
	}

}
